package com.vf.admin.client.service;


import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.entity.AppHeadwear;
import com.vf.admin.miaodong.entity.AppMounts;
import com.vf.admin.miaodong.entity.AppUser;
import com.vf.admin.miaodong.entity.AppUserDressup;

import java.util.List;
import java.util.Map;

/**
 * 购买坐骑记录
 */
public interface AppUserDressupService {

    //列表查询
    List<AppUserDressup> list(Map<String, Object> paraMap, SplitPageBean splitPage);

    List<AppUserDressup> list(Map<String, Object> paraMap);

    //保存、修改
    void save(AppUserDressup haoYou);

    /**
     * 跟新我的装扮信息
     * @param goodname 头饰/坐骑名
     * @param goodpic 头饰/坐骑图片
     * @param type 1坐骑  2头饰
     * @param mountsid 头饰/坐骑id
     */
    void updateZuoqiDate(Integer mountsid,Integer type,String goodpic,String goodname);

    //删除
    void del(Integer id);

    //详情
    AppUserDressup get(Integer id);

    /**
     * 根据用户id获取默认的坐骑
     * @param userid
     * @param type 1坐骑  2头饰
     * @return
     */
    AppUserDressup getUserid(Integer userid,Integer type);


    /**
     * 根据批量用户id获取默认的坐骑
     * @param arr
     * @param type 1坐骑  2头饰
     * @return
     */
    List<AppUserDressup> getPiliang(String arr,Integer type);


    /**
     * 购买坐骑
     * @param user 用户
     * @param appMounts
     * @return
     */
    boolean shopZuoqi(AppUser user, AppMounts appMounts);

    /**
     * 购买头饰
     * @param user 用户
     * @param appHeadwear
     * @return
     */
    boolean shopToushi(AppUser user, AppHeadwear appHeadwear);

    /**
     * 根据用户id查询未过期的坐骑、头饰信息
     * @param userid
     * @param type
     * @return
     */
    public List<AppUserDressup> selectMountsByUserid(Integer userid,Integer type);

    /**
     * 查询未过期的设为默认的坐骑、头饰信息
     * @return
     */
    public List<AppUserDressup> selectNoGuoqi();
}
